<?php 
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
defined('_JEXEC') or die('Restricted access'); ?>
<script type="text/javascript" language="javascript">
//<![CDATA[
function submitbutton(pressbutton) {
	var form = document.adminForm;

	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}
	if ( pressbutton == 'save' || pressbutton == 'apply' ){
		if(form.SchemaName.value == '' ){
		    alert('<?php echo JText::_('SCHEMA NAME COULD NOT BE EMPTY')?>');
			form.SchemaName.focus();
			return;
		}
		
		submitform( pressbutton );
	}					
	else {
		submitform( pressbutton );
	}
}

//]]>
</script>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<div class="col100">
	<?php echo $this->menu_User();?>
        	<br/>
	<fieldset class="adminform">
	
		<legend><?php echo JText::_( 'ADD-EDIT SCHEMA' ); ?></legend>

		<table class="admintable">
		<tr>
			<td width="100" align="right" class="key">
				<label for="title">
					<?php echo JText::_( 'NAME' ); ?><font color="Red">*</font>:
				</label>
			</td>
			<td>
				<input class="text_area" type="text" name="SchemaName" id="SchemaName" size="40" maxlength="250" value="<?php echo $this->data->SchemaName;?>" />
			</td>
		</tr>
		<tr>
			<td width="100" align="right" class="key">
				<label for="description">
					<?php echo JText::_( 'DESCRIPTION' ); ?>:
				</label>
			</td>
			<td>
			<textarea name="Description" id="Description" rows="5" cols="50"><?php echo $this->data->Description;?></textarea>
			</td>
		</tr>
	</table>
	</fieldset>
</div>
<div class="clr"></div>

<input type="hidden" name="option" value="com_jajobboard" />
<input type="hidden" name="SchemaID" value="<?php echo $this->data->SchemaID;?>" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="tab" value="schemas" />
<input type="hidden" name="view" value="jaxmlexport" />
</form>